{% if action == 'c' %}
<form action="" method="POST">
{% csrf_token %}
<p>{{ form.department.label_tag }}: {{ form.department }}</p>
<p><input type="submit" /></p>
<input type="hidden" name="user" id="id_user" value="{{ user.id }}" />
</form>
{% endif %}
{% if action == 'u' %}
<p>Hello, {{ update_reader }}</p>
<form action="" method="POST">
{% csrf_token %}
{{ form.as_p }}
<p><input type="submit" /></p>
</form>
{% endif %}
{% if action == 'd' %}
<form action="" method="POST">
{% csrf_token %}
<p>you wanna delete {{ delete_reader }}?</p>
<p><input type="submit" /></p>
</form>
{% endif %}
{% if action == 'c' or action == 'u' %}
<script>
//	document.getElementById("id_user").value = {{ user.id }};
</script>
{% endif %}

